$(function () {
    console.log('index='+ millData);
    var hgS2 = new selectSwiper({
        el: '.select_box2',
        mustSelect: true,
        activeIndex: 0,
        data:millData,
        init: function (index) {
            if (index !== -1) {
                $('.btn2').html(this.data[index]);
            }
        },
        okFunUndefind: function () {
            alert('必须选择一项');
        },
        okFun: function (index) {
            $('.btn2').html(this.data[index]);
        },
        closeFun: function () {
            console.log('取消');
        },
    });
    $('.btn2').on('click', function () {
        hgS2.openSelectSwiper();
    });
});